package com.analog.mserver.domain.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.analog.mserver.domain.base.BaseEntity;
import com.analog.mserver.domain.common.CommonType.State;

@Entity
@Table(name = "sys_role")
public class RoleEntity extends BaseEntity {
	private static final long serialVersionUID = -8399795105079266614L;

	@Column(name = "name", unique = true, nullable = false, length = 80)
	private String name;

	@Column(name = "remarks", length = 255)
	private String remarks;

	@Column(name = "state", length = 10)
	@Enumerated(EnumType.STRING)
	private State state;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}


}
